package com.jiuqi.ccp.generator.dao.pojo;

import java.io.Serializable;
import org.apache.commons.lang.builder.EqualsBuilder;
import org.apache.commons.lang.builder.HashCodeBuilder;
import org.apache.commons.lang.builder.ToStringBuilder;

/** 
 *        @hibernate.class
 *         table="CCP_GT_TREE"
 *     
*/
public class CcpGtTree implements Serializable {

    /** identifier field */
    private String cgtGuid;

    /** nullable persistent field */
    private String cgtName;

    /** nullable persistent field */
    private String cgtCode;

    /** nullable persistent field */
    private String style;

    /** nullable persistent field */
    private String cgtExplain;

    /** nullable persistent field */
    private String entityName;

    /** nullable persistent field */
    private String addbtnName;

    /** nullable persistent field */
    private String editbtnName;

    /** nullable persistent field */
    private String delbtnName;

    /** nullable persistent field */
    private String reserved1;

    /** nullable persistent field */
    private String reserved2;

    /** nullable persistent field */
    private String reserved3;

    /** full constructor */
    public CcpGtTree(String cgtGuid, String cgtName, String cgtCode, String style, String cgtExplain, String entityName, String addbtnName, String editbtnName, String delbtnName, String reserved1, String reserved2, String reserved3) {
        this.cgtGuid = cgtGuid;
        this.cgtName = cgtName;
        this.cgtCode = cgtCode;
        this.style = style;
        this.cgtExplain = cgtExplain;
        this.entityName = entityName;
        this.addbtnName = addbtnName;
        this.editbtnName = editbtnName;
        this.delbtnName = delbtnName;
        this.reserved1 = reserved1;
        this.reserved2 = reserved2;
        this.reserved3 = reserved3;
    }

    /** default constructor */
    public CcpGtTree() {
    }

    /** minimal constructor */
    public CcpGtTree(String cgtGuid) {
        this.cgtGuid = cgtGuid;
    }

    /** 
     *            @hibernate.id
     *             generator-class="assigned"
     *             type="java.lang.String"
     *             column="CGT_GUID"
     *         
     */
    public String getCgtGuid() {
        return this.cgtGuid;
    }

    public void setCgtGuid(String cgtGuid) {
        this.cgtGuid = cgtGuid;
    }

    /** 
     *            @hibernate.property
     *             column="CGT_NAME"
     *             length="100"
     *         
     */
    public String getCgtName() {
        return this.cgtName;
    }

    public void setCgtName(String cgtName) {
        this.cgtName = cgtName;
    }

    /** 
     *            @hibernate.property
     *             column="CGT_CODE"
     *             length="20"
     *         
     */
    public String getCgtCode() {
        return this.cgtCode;
    }

    public void setCgtCode(String cgtCode) {
        this.cgtCode = cgtCode;
    }

    /** 
     *            @hibernate.property
     *             column="STYLE"
     *             length="2"
     *         
     */
    public String getStyle() {
        return this.style;
    }

    public void setStyle(String style) {
        this.style = style;
    }

    /** 
     *            @hibernate.property
     *             column="CGT_EXPLAIN"
     *             length="100"
     *         
     */
    public String getCgtExplain() {
        return this.cgtExplain;
    }

    public void setCgtExplain(String cgtExplain) {
        this.cgtExplain = cgtExplain;
    }

    /** 
     *            @hibernate.property
     *             column="ENTITY_NAME"
     *             length="20"
     *         
     */
    public String getEntityName() {
        return this.entityName;
    }

    public void setEntityName(String entityName) {
        this.entityName = entityName;
    }

    /** 
     *            @hibernate.property
     *             column="ADDBTN_NAME"
     *             length="20"
     *         
     */
    public String getAddbtnName() {
        return this.addbtnName;
    }

    public void setAddbtnName(String addbtnName) {
        this.addbtnName = addbtnName;
    }

    /** 
     *            @hibernate.property
     *             column="EDITBTN_NAME"
     *             length="20"
     *         
     */
    public String getEditbtnName() {
        return this.editbtnName;
    }

    public void setEditbtnName(String editbtnName) {
        this.editbtnName = editbtnName;
    }

    /** 
     *            @hibernate.property
     *             column="DELBTN_NAME"
     *             length="20"
     *         
     */
    public String getDelbtnName() {
        return this.delbtnName;
    }

    public void setDelbtnName(String delbtnName) {
        this.delbtnName = delbtnName;
    }

    /** 
     *            @hibernate.property
     *             column="RESERVED1"
     *             length="50"
     *         
     */
    public String getReserved1() {
        return this.reserved1;
    }

    public void setReserved1(String reserved1) {
        this.reserved1 = reserved1;
    }

    /** 
     *            @hibernate.property
     *             column="RESERVED2"
     *             length="50"
     *         
     */
    public String getReserved2() {
        return this.reserved2;
    }

    public void setReserved2(String reserved2) {
        this.reserved2 = reserved2;
    }

    /** 
     *            @hibernate.property
     *             column="RESERVED3"
     *             length="50"
     *         
     */
    public String getReserved3() {
        return this.reserved3;
    }

    public void setReserved3(String reserved3) {
        this.reserved3 = reserved3;
    }

    public String toString() {
        return new ToStringBuilder(this)
            .append("cgtGuid", getCgtGuid())
            .toString();
    }

    public boolean equals(Object other) {
        if ( !(other instanceof CcpGtTree) ) return false;
        CcpGtTree castOther = (CcpGtTree) other;
        return new EqualsBuilder()
            .append(this.getCgtGuid(), castOther.getCgtGuid())
            .isEquals();
    }

    public int hashCode() {
        return new HashCodeBuilder()
            .append(getCgtGuid())
            .toHashCode();
    }

}
